package com.zzf.spring6.service;

import com.zzf.spring6.dao.UserDao;

public class UserService {
    private UserDao userDao;

    //set注入的话，必须提供一个set方法，来给userDao赋值
    public void setUserDao(UserDao userDao){
        this.userDao = userDao;
    }
    public void saveUser() {
        userDao.insert();
    }
}
